<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>

<link href="style.css" rel="stylesheet" type="text/css" >

<body class="body" >
	<logic:present name="auth" scope="session">
		<html:form action="/adminRoutsStantion" method="POST">
			<table border='1' align="center" width="800">
				<tr>
					<td>
						<c:forEach var="city" items="${citys}">
							<html:checkbox property="id_city" value="${city.id_city}"> <b>${city.name_city}</b></html:checkbox><br>
						</c:forEach> 					
					</td>
					<td>
						<html:select property="routs_name">
							<html:option value=""></html:option>
							<c:forEach var="rout" items="${routs}">
								<html:option value="${rout.id_routs}">${rout.name_routs}</html:option>
							</c:forEach> 
							
						</html:select>					
					</td>
				</tr>
				<tr>
					<td>
						
					</td>
					<td></td>
				</tr>
				<tr>
				
				</tr>
			
			</table>
			<html:submit property="show" > <bean:message key="button.show" /></html:submit>
			<html:submit property="add" onclick="return confirm('Add?')? true : false;"> <bean:message key="button.add" /></html:submit>
		</html:form>
	
	
	
	
	</logic:present>
</body>